package com.itheima.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

//@WebFilter("/*")
public class Demo01Filter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("====Demo01Filter=====A");

        // 放行请求：调用后边的资源
        filterChain.doFilter(servletRequest, servletResponse);
        System.out.println("====Demo01Filter=====B");

    }
}
